﻿<%@ Page Title="" Language="VB" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    <%Dim Model = CType(ViewData("Model"), NerdDinnerVB.Dinner)%>
    Details:<%=Html.Encode(Model.Title) %>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <%Dim Model = CType(ViewData("Model"), NerdDinnerVB.Dinner)%>
    <h2>
        Details:<%=Html.Encode(Model.Title) %></h2>
    <p>
        <strong>When:</strong>
        <%=Model.EventDate.ToShortDateString() %>
        <strong>@</strong>
        <%=Model.EventDate.ToShortTimeString() %>
    </p>
    <p>
        <strong>Where:</strong>
        <%=Html.Encode(Model.Address) %>,
        <%=Html.Encode(Model.Country) %>
    </p>
    <p>
        <strong>Description:</strong>
        <%=Html.Encode(Model.Description) %>
    </p>
    <p>
        <strong>Organizer:</strong>
        <%=Html.Encode(Model.HostedBy) %>
        (<%=Html.Encode(Model.ContactPhone) %>)
    </p>
    <%=Html.ActionLink("Edit", "Edit", New With {.id = Model.DinnerID})%>
    |
    <%=Html.ActionLink("Back to List", "Index") %>
</asp:Content>
